// node myFile.js

const pendingTimers = []
const pendingOSTasks = []
const pendingOperations = []

function shouldContinue(){
  return pendingTimers.length || pendingOSTasks.length || pendingOperations.length
}

while(shouldContinue()){
  
}

// exit back to terminal